#pragma once

#include "scoped_ptr.h"


struct LANGANDCODEPAGE {
    WORD wLanguage;
    WORD wCodePage;
};

class WinFile
{
public:
    WinFile();
    ~WinFile();

    bool Load(const TCHAR *pFilePath);

    CString GetValue(const CString &strKey);

private:
    CString m_strFile;
    ScopedHandle m_hFile;
    PVOID m_pVerBuffer;
    LANGANDCODEPAGE *m_pVerLang;
};